package com.fulihui.weixinclient.request;

import java.util.List;

import com.alibaba.fastjson.JSONObject;
import com.fulihui.weixinclient.http.HttpMethodEnum;
import com.fulihui.weixinclient.model.UserBatchGetCondition;
import com.fulihui.weixinclient.result.UserInfoBatchGetWeixinResult;

/**
 * 批量查询微信用户信息请求参数
 * @author Created by Willard.Hu on 2016/8/17 0017.
 */
public class UserInfoBatchGetWeixinRequest extends FuncWeixinRequest<UserInfoBatchGetWeixinResult> {
    private static final long           serialVersionUID = 1724120819310326972L;

    private List<UserBatchGetCondition> user_list;

    @Override
    public String service() {
        return "https://api.weixin.qq.com/cgi-bin/user/info/batchget";
    }

    @Override
    public HttpMethodEnum httpMethod() {
        return HttpMethodEnum.SSL_POST;
    }

    @Override
    public String requestData() {
        return JSONObject.toJSONString(this);
    }

    @Override
    public String urlEndStr() {
        return null;
    }

    @Override
    public UserInfoBatchGetWeixinResult parseResult(String respStr) {
        return JSONObject.parseObject(respStr, UserInfoBatchGetWeixinResult.class);
    }

    public List<UserBatchGetCondition> getUser_list() {
        return user_list;
    }

    public void setUser_list(List<UserBatchGetCondition> user_list) {
        this.user_list = user_list;
    }
}
